'use strict';

const db = uniCloud.database()
exports.main = async (event, context) => {

	const {
		id = "6562f307337a9f075665f55e"
	} = event

	let detail = await db.collection('BOSS_job').where({
		_id: id
	}).get()

	return {
		code: 200,
		msg: '数据请求成功',
		data: detail.data[0]
	}
};